<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class GetJson extends CI_Controller {
    public function index(){
        exit("Acceso denegado");
    } //fin public function index(){
    
    public function instrumento(){
        /*Funcion para cargar todos los registros de un instrumento*/
        $this->load->model("getjson_model","modGetJson",true);
        echo "hola";
        switch ($this->input->post("opc")) {
            case 'instru':
                echo "hola1";
                $this->modGetJson->extraAplicacionInst($this->input->post("instrumento"));             
                echo "hola2";
                break;

            default:
                break;
        }
        return true;
    } //fin public function instrumento(){
    public function snies(){
        /*Funcion para extraer la informacion del programa SNIES*/
        $this->load->model("getjson_model","modGetJson",true);
        $progId = $this->input->get("prog");
        $partId = $this->session->userdata("participanteId");
        $this->modGetJson->extraeSnies($progId,$partId);
        return;
    } //fin public function snies($progId){
    public function instituciones(){
        /*Funcion para extraer la informacion del programa SNIES*/
        $this->load->model("getjson_model","modGetJson",true);
        $instiId = $this->input->get("insti");
        $this->modGetJson->institucion($instiId);
        return;
    } //fin public function snies($progId){
} //fin class GetJson extends CI_Controller {